using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using MidnightPeach.Engine.Generators.DataGenerators;
using MidnightPeach.Engine.Generators.ServiceGenerators;
using MidnightPeach.Engine.Schema;
using MidnightPeach.Engine.Schema.Extractors;
using MidnightPeach.SolutionCreating;

namespace MidnightPeach.Immediate
{
    class Program
    {
        static void Main(string[] args)
        {
            using (FileStream stream = new FileStream(@"D:\Practices\ConsoleApplication2\ConsoleApplication2\Model1.edmx", FileMode.Open, FileAccess.Read))
            {
                //                XElement edmx = XElement.Load(filename);
                XElement edmx = XElement.Load(stream);
                var list = edmx.GetNamespaceOfPrefix("edmx");
                var list2 = edmx.DescendantNodesAndSelf();
//                var csdlNodes = edmx.Descendants(EdmxNamespace + "ConceptualModels").First().Elements();

                stream.Close();
            }
        }
    }
}
